version 17.0					
set more off					
  quietly log					
  local logon = r(status)
  if "`logon'" == "on" { 		
	log close
	}	
log using ttw_laspisamitchell_Replication, text replace	

/******************************************************************************/
/* Author(s):		Chase LaSpisa & Sara McLaughlin Mitchell                  */
/* Date:			September 23rd, 2024			  	  	                  */
/* File:			ttw_laspisamitchell_Replicationcode_9.23.24.do            */
/* Purpose:		    Replication Material for How Domestic Political 		  */
/*					Institutions Influence Maritime Conflict 				  */
/* Input File(s):	FPAr&rdata09232024_final.dta							  */
/* Output File(s):	ttw_laspisamitchell_ (.rtf,.gph,etc.)		              */
/* NOTE: Tables and figures require asdoc and Esstab packages in Stata.	      */
/* Please see the README file for instructions on how to install these.       */
/******************************************************************************/

clear all

use "FPAr&rdata09232024_final.dta"

/**** Main Results ****/	
/** Table 1: Average Weakest Link V-Dem Scores for Maritime Dyads and Landlocked Dyads **/
	*Comparing Democracy Levels for Maritime vs Landlocked States*
asdoc sum polyarchylow libdemlow partipdemlow delibdemlow egaldemlow, by(maritimeconflict) stat(mean N) label replace


/** Table 2: Weakest Link V-Dem Democracy Indicators and Maritime Conflict **/
logit mariss3 polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store polyarchyWL

logit mariss3 libdemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store libdemWL

logit mariss3 partipdemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store partipdemWL

logit mariss3 delibdemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store delibdemWL

logit mariss3 egaldemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store egaldemWL


esttab polyarchyWL libdemWL partipdemWL delibdemWL egaldemWL  ///
	using ttw_laspisamitchell_table2.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("Elect. Dem." "Lib. Dem." "Part. Dem" "Delib. Dem." "Egal. Dem.") ///
	order(polyarchylow libdemlow partipdemlow delibdemlow egaldemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq) ///
	label ///
	title("Table 2: V-Dem Weak-Link Democracy Indicators and Maritime Conflict")

	
/** Figure 1: Predicted Probability of Maritime Conflict Varying V-Dem Indicators **/
/* Polyarchy Weak-Link */
quietly logit mariss3 polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
quietly margins, at(polyarchylow=(.008(.266).923)) atmeans vsquish

marginsplot, recastci(rarea) scheme(s1color) graphregion(col(white)) ///
	derivlab bgcol(white) plotopts(mcolor(navy) lcolor(blue%40)) ciopt(color(blue%40)) ///
	title("") ///
	ytitle("Probality of Maritime Conflict") ///
	name(polyME, replace) ///
	saving(ttw_laspisamitchell_margins1, replace)

	graph export ttw_laspisamitchell_margins1.png, as(png) replace

/* Lib Dem Weak-Link */
quietly logit mariss3 libdemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
quietly margins, at(libdemlow=(.006(.2438).896)) atmeans vsquish 

marginsplot, recastci(rarea) scheme(s1color) graphregion(col(white)) ///
	derivlab bgcol(white) plotopts(mcolor(navy) lcolor(blue%40)) ciopt(color(blue%40)) ///
	title("") ///
	ytitle("Probality of Maritime Conflict") ///
	name(libdemME, replace) ///
	saving(ttw_laspisamitchell_margins2, replace) 

	graph export ttw_laspisamitchell_margins2.png, as(png) replace

/* Partic. Dem. Weak-Link */	
quietly logit mariss3 partipdemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
quietly margins, at(partipdemlow=(.006(.3).698)) atmeans vsquish 
	
marginsplot, recastci(rarea) scheme(s1color) graphregion(col(white)) ///
	derivlab bgcol(white) plotopts(mcolor(navy) lcolor(blue%40)) ciopt(color(blue%40)) ///
	title("") ///
	ytitle("Probality of Maritime Conflict") ///
	name(partdemME, replace) ///
	saving(ttw_laspisamitchell_margins3, replace)
	
	graph export ttw_laspisamitchell_margins3.png, as(png) replace	
	
/* Delib. Dem. Weak-Link */		
quietly logit mariss3 delibdemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
quietly margins, at(delibdemlow=(.003(.2382).889)) atmeans vsquish
	
marginsplot, recastci(rarea) scheme(s1color) graphregion(col(white)) ///
	derivlab bgcol(white) plotopts(mcolor(navy) lcolor(blue%40)) ciopt(color(blue%40)) ///
	title("") ///
	ytitle("Probality of Maritime Conflict") ///
	name(delibdemME, replace) ///
	saving(ttw_laspisamitchell_margins4, replace)
	
	graph export ttw_laspisamitchell_margins4.png, as(png) replace	

	
/* Egal. Dem. Weak-Link */		
quietly logit mariss3 egaldemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
quietly margins, at(egaldemlow=(.003(.2382).889)) atmeans vsquish 
	
marginsplot, recastci(rarea) scheme(s1color) graphregion(col(white)) ///
	derivlab bgcol(white) plotopts(mcolor(navy) lcolor(blue%40)) ciopt(color(blue%40)) ///
	title("") ///
	ytitle("Probality of Maritime Conflict") ///
	name(egaldemME, replace) ///
	saving(ttw_laspisamitchell_margins5, replace)
	
	graph export ttw_laspisamitchell_margins5.png, as(png) replace	

	
/* Combining Margins Plot */	
graph combine polyME libdemME partdemME delibdemME egaldemME, scheme(s1mono) ///
	cols(3) imargin(vsmall) ///
	iscale(*1) ///
	note("Note. Data on Maritime Conflict is from ICOW. We plot the probabilities using the min., sd, and max for each indicator." ///
	"The partic. dem. variable did not have enough data to estimate using the standard deviation, so we use .3 instead.", size(vsmall)) ///
	saving(ttw_combinedMEgraph, replace)
	
	
/** Table 3: Presidential Versus Parliamentary Democracies and Maritime Conflict **/
logit mariss3 parliamentary1 parliamentary2 presidential1 presidential2 relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store parpres1

logit mariss3 parliamentary1 parliamentary2 presidential1 presidential2 polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store parpres2

logit mariss3 parliamentarydyad presidentialdyad parlpresmixdyad polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store parpres3

esttab parpres1 parpres2 parpres3 ///
	using ttw_laspisamitchell_table4.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("Monadic" "Monadic + V-Dem" "Dyadic") ///
	order(mariss3 parliamentary1 parliamentary2 presidential1 presidential2 parliamentarydyad presidentialdyad parlpresmixdyad polyarchylow polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq) ///
	label ///
	title("Table 3: Presidential vs. Parliamentary Democracies and Maritime Conflict")


/*** Table 4: Territorial Integrity Norms and Maritime Conflict ***/
	*Replicating D&M model with territorial integrity measures*
*Zacher (dummy variable 1976+)
logit mariss3 polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq zacher
estimates store zacher
*Note that this result is significant at the 90% level, but has the opposite sign expected from a territorial integrity norm.

*Average number of global or regional pacific settlement treaties with 5 or more members (from MTOPS)
logit mariss3 polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq regpac
estimates store regpac

*Average number of global or regional treaties with territorial integrity clauses and 5 or more members (from MTOPS)
logit mariss3 polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq regter
estimates store regter


esttab zacher regpac regter ///
	using ttw_laspisamitchell_table4.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("Post-1976" "Peaceful Settlement" "Territorial Integrity") ///
	order(mariss3 zacher regpac regter polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq) ///
	label ///
	title("Table 4: Territorial Integrity Norms and Maritime Conflict")
	


	
	
/***** Appendix *****/

/*** Table A1: One-Way ANOVA Tests for Table 1; Average Weakest Link V-Dem Scores for Maritime Dyads and Landlocked Dyads ***/
/* How to generate One-Way for the First set of Results (top half of table */
oneway polyarchylow maritimeconflict, tabulate
oneway libdemlow maritimeconflict, tabulate
oneway partipdemlow maritimeconflict, tabulate
oneway delibdemlow maritimeconflict, tabulate
oneway egaldemlow maritimeconflict, tabulate

/* How to generate One-Way for Maritime Dyads only (bottom half of table */
oneway polyarchylow mariss3, tabulate
oneway libdemlow mariss3, tabulate
oneway partipdemlow mariss3, tabulate
oneway delibdemlow mariss3, tabulate
oneway egaldemlow mariss3, tabulate


/*** Table A2: Average V-Dem Scores for Both Countries in Maritime Dyads versus Landlocked Dyads ***/
bys mar_landlocked: asdoc sum v2x_polyarchy1 v2x_polyarchy2 v2x_libdem1 v2x_libdem2 v2x_partipdem1 v2x_partipdem2 v2x_delibdem1 v2x_delibdem2 v2x_egaldem1 v2x_egaldem2, replace


/*** Table A3: Monadic V-Dem Indicators and Maritime Conflict ***/
logit mariss3 v2x_polyarchy1 v2x_polyarchy2 relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store polyarchy

logit mariss3 v2x_libdem1 v2x_libdem2 relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store libdem

logit mariss3 v2x_partipdem1 v2x_partipdem2 relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store partipdem

logit mariss3 v2x_delibdem1 v2x_delibdem2 relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store delibdem

logit mariss3 v2x_egaldem1 v2x_egaldem2 relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store egaldem


esttab polyarchy libdem partipdem delibdem egaldem  ///
	using ttw_laspisamitchell_tableA3.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("Elect. Dem." "Lib. Dem." "Part. Dem" "Delib. Dem." "Egal. Dem.") ///
	order(mariss3 v2x_polyarchy1 v2x_polyarchy2 v2x_libdem1 v2x_libdem2 v2x_partipdem1 v2x_partipdem2 v2x_delibdem1 v2x_delibdem2 v2x_egaldem1 v2x_egaldem2 relcapenergy majpow cwmid americas europe asia middleeast year yearsq) ///
	label ///
	title("Table A3: Monadic V-Dem Indicators and Maritime Conflict")
	

/*** Table A4: One-Way ANOVA Tests for EEZ Maritime Claim Occurrence EEZ vs. non-EEZ ***/
oneway polyarchylow mareez2 , tabulate
oneway libdemlow mareez2 , tabulate
oneway partipdemlow mareez2 , tabulate
oneway delibdemlow mareez2 , tabulate
oneway egaldemlow mareez2 , tabulate


/*** Table A5: Democracy Indicators and Maritime Conflict, controlling for the U.S. and the UKUS & UK Dummies & Analysis ***/
logit mariss3 polyarchylow relcapenergy majpow cwmid usa uk americas europe asia middleeast year yearsq
estimates store polyusuk
		
logit mariss3 libdemlow relcapenergy majpow cwmid usa uk americas europe asia middleeast year yearsq
estimates store libusuk		

logit mariss3 partipdemlow relcapenergy majpow cwmid usa uk americas europe asia middleeast year yearsq
estimates store partusuk		

logit mariss3 delibdemlow relcapenergy majpow cwmid usa uk americas europe asia middleeast year yearsq
estimates store delibusuk		

logit mariss3 egaldemlow relcapenergy majpow cwmid usa uk americas europe asia middleeast year yearsq
estimates store egalusuk
	
	/* Results hold for all V-Dem Measures */

logit mariss3 dyaddem mixeddyad relcapenergy majpow cwmid usa uk americas europe asia middleeast year yearsq
estimates store polityusuk
	/* democratic dyad becomes negative and significant */

	
esttab polyusuk libusuk partusuk delibusuk egalusuk polityusuk ///
	using ttw_laspisamitchell_tableA5.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("V-Dem" "V-Dem" "V-Dem" "V-Dem" "V-Dem" "PolityIV") ///
	order(mariss3 mariss3 polyarchylow libdemlow partipdemlow delibdemlow egaldemlow dyaddem mixeddyad usa uk relcapenergy majpow cwmid americas europe asia middleeast year yearsq) ///
	label ///
	title("Table A5: Democracy Indicator and Maritime Conflict Controlling For US and UK")
		
	
/*** Table A6: Regional Analyses of Democracy and Maritime Conflict ***/

logit mariss3 polyarchylow relcapenergy majpow cwmid year yearsq if americas==1
estimates store americas

logit mariss3 polyarchylow relcapenergy majpow cwmid year yearsq if europe==1
estimates store europe

logit mariss3 polyarchylow relcapenergy majpow cwmid year yearsq if asia==1
estimates store asia

logit mariss3 polyarchylow relcapenergy majpow cwmid year yearsq if middleeast==1
estimates store middleeast

esttab americas europe asia middleeast ///
	using ttw_laspisamitchell_tableA6.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("Americas" "Europe" "Asia" "Middle East") ///
	order(mariss3 polyarchylow relcapenergy majpow cwmid year yearsq) ///
	label ///
	title("Table A6: Regional Analyses of Democracy and Maritime Conflict")

	
/*** Table A7: ***/
/* This table was manually put together, but the code to generate the numbers is presented below */
*Top half of table for Parliamentary Systems*
sum v2x_polyarchy1 if parliamentary1==1 & (mariss3==0 | mariss3==1)
sum v2x_polyarchy1 if parliamentary1==0 & (mariss3==0 | mariss3==1)

sum v2x_polyarchy2 if parliamentary2==1 & (mariss3==0 | mariss3==1)
sum v2x_polyarchy2 if parliamentary2==0 & (mariss3==0 | mariss3==1)

*Top half of table for Presidential Systems*
sum v2x_polyarchy1 if presidential1 ==1 & (mariss3==0 | mariss3==1)
sum v2x_polyarchy1 if presidential1 ==0 & (mariss3==0 | mariss3==1)

sum v2x_polyarchy2 if presidential2 ==1 & (mariss3==0 | mariss3==1)
sum v2x_polyarchy2 if presidential2 ==0 & (mariss3==0 | mariss3==1)
	
	
/*** Table A8: Interaction Between Democractic Dyad and Territorial Integrity Norms ***/
*Democratic Dyads*	
logit mariss3 c.polyarchylow##i.zacher relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store dyaddemXzacher

logit mariss3 c.polyarchylow##c.regpac relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store dyaddemXregpac

logit mariss3 c.polyarchylow##c.regter relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store dyaddemXregter
	
	
esttab dyaddemXzacher dyaddemXregpac dyaddemXregter ///
	using ttw_laspisamitchell_tableA8.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("Zacher" "RegPac" "RegTer") ///
	order(mariss3 polyarchylow zacher regpac regter relcapenergy majpow cwmid americas europe asia middleeast year yearsq) ///
	label ///
	title("Table A8: Territorial Integrity Norms, Democratic Dyads, and Maritime Conflict")


	
	
	
/*** Table A9 Supplementary V-Dem Indicators ***/
logit mariss3 v2elpaidiglow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store paidinterestgroups

logit mariss3 v2x_cspartlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store civilsocietypart

logit mariss3 v2xlg_legconlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store legisconstraints

logit mariss3 v2x_juconlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store judicconstraints

logit mariss3 v2elrgpwrlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store regionaloffices

logit mariss3 v2x_execorrlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store executivecorruption

logit mariss3 v2x_fedunilow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store divisionofpower

logit mariss3 v2eltvrexolow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store electionexecutiveturnover

* Corruption Index model did not converge *

esttab civilsocietypart paidinterestgroups regionaloffices divisionofpower legisconstraints judicconstraints executivecorruption electionexecutiveturnover ///
	using ttw_laspisamitchell_tableA9.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("Civil Society" "Interest Groups" "Regional Government" "Division of Power" "Legislative Constraints" "Judicial Constraints" "Executive Corruption" "Election Executive Turnover") ///
	order(mariss3 v2x_cspartlow v2elpaidiglow v2elrgpwrlow v2x_fedunilow v2xlg_legconlow v2x_juconlow v2x_execorrlow v2eltvrexolow relcapenergy majpow cwmid americas europe asia middleeast year yearsq) ///
	label ///
	title("Table A9: Democratic Interests, Executive Constraints, and Maritime Conflicts")



/*** Table A10: Replicating Main V-Dem Indicator Models with Crisher and Souva Naval Power Data ***/
logit mariss3 polyarchylow relcapenergy majpow cwmid totton1 totton2 americas europe asia middleeast year yearsq
estimates store polyarchyWLNavalPower

logit mariss3 libdemlow relcapenergy majpow cwmid totton1 totton2 americas europe asia middleeast year yearsq
estimates store libdemWLNavalPower

logit mariss3 partipdemlow relcapenergy majpow totton1 totton2 cwmid americas europe asia middleeast year yearsq
estimates store partipdemWLNavalPower

logit mariss3 delibdemlow relcapenergy majpow cwmid totton1 totton2 americas europe asia middleeast year yearsq
estimates store delibdemWLNavalPower

logit mariss3 egaldemlow relcapenergy majpow cwmid totton1 totton2 americas europe asia middleeast year yearsq
estimates store egaldemWLNavalPower

esttab polyarchyWLNavalPower libdemWLNavalPower partipdemWLNavalPower delibdemWLNavalPower egaldemWLNavalPower  ///
	using ttw_laspisamitchell_tableAX.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("Elect. Dem." "Lib. Dem." "Part. Dem" "Delib. Dem." "Egal. Dem.") ///
	order(polyarchylow libdemlow partipdemlow delibdemlow egaldemlow relcapenergy majpow cwmid totton1 totton2 americas europe asia middleeast year yearsq) ///
	label ///
	title("Table A10: Replicating Main V-Dem Indicator Models with Naval Power Data")
	

/*** Table AXI-AXII: Replicating Main Analysis and Territorial Integrity Models with Split Maritime EEZ/Non-EEZ Samples ***/
/** Main Models **/
*Polyarchy Models*
logit mareez2 polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store polyarchyWLMarEEZ

logit marnoeez polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store polyarchyWLMarNOEEZ

*Liberal Dem Models*
logit mareez2 libdemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store libdemWLMarEEZ

logit marnoeez libdemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store libdemWLMarNOEEZ

*Participatory Dem*
logit mareez2 partipdemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store partipdemWLMarEEZ

logit marnoeez partipdemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store partipdemWLMarNOEEZ

*Deliberative Dem*
logit mareez2 delibdemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store delibdemWLMarEEZ

logit marnoeez delibdemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store delibdemWLMarNOEEZ

*Egalitarian Dem*
logit mareez2 egaldemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store egaldemWLMarEEZ

logit marnoeez egaldemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store egaldemWLMarNOEEZ

esttab polyarchyWLMarEEZ libdemWLMarEEZ partipdemWLMarEEZ delibdemWLMarEEZ egaldemWLMarEEZ  ///
	using ttw_laspisamitchell_tableAXIA.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("Elect. Dem." "Lib. Dem." "Part. Dem" "Delib. Dem." "Egal. Dem.") ///
	order(polyarchylow libdemlow partipdemlow delibdemlow egaldemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq) ///
	label ///
	title("Table A11a: Replicating Main V-Dem Indicator Models with EEZ Claims")
	
esttab polyarchyWLMarNOEEZ libdemWLMarNOEEZ partipdemWLMarNOEEZ delibdemWLMarNOEEZ egaldemWLMarNOEEZ  ///
	using ttw_laspisamitchell_tableAXIB.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("Elect. Dem." "Lib. Dem." "Part. Dem" "Delib. Dem." "Egal. Dem.") ///
	order(polyarchylow libdemlow partipdemlow delibdemlow egaldemlow relcapenergy majpow cwmid americas europe asia middleeast year yearsq) ///
	label ///
	title("Table A11b: Replicating Main V-Dem Indicator Models with Non-EEZ Claims")	

	
/** Territorial Integrity Models **/	
*No Interaction Models*
logit mareez2 zacher polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store zacherMarEEZ

logit marnoeez zacher polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store zacherMarNOEEZ


logit mareez2 regpac polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store regpacMarEEZ

logit marnoeez regpac polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store regpacMarNOEEZ


logit mareez2 regter polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store regterMarEEZ

logit marnoeez regter polyarchylow relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store regterMarNOEEZ

esttab zacherMarEEZ zacherMarNOEEZ regpacMarEEZ regpacMarNOEEZ regterMarEEZ regterMarNOEEZ  ///
	using ttw_laspisamitchell_tableAXIIA.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("EEZ" "Non-EEZ" "EEZ" "Non-EEZ" "EEZ" "Non-EEZ") ///
	order(polyarchylow zacher regpac regter relcapenergy majpow cwmid americas europe asia middleeast year yearsq) ///
	label ///
	title("Table A12a: Replicating Territorial Integrity Models for EEZ and Non-EEZ Claims")


*Interaction Models*
logit mareez2 c.polyarchylow##i.zacher relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store dyaddemXzacherXMarEEZ

logit marnoeez c.polyarchylow##i.zacher relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store dyaddemXzacherXMarNOEEZ


logit mareez2 c.polyarchylow##c.regpac relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store dyaddemXregpacMarEEZ

logit marnoeez c.polyarchylow##c.regpac relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store dyaddemXregpacMarNOEEZ


logit mareez2 c.polyarchylow##c.regter relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store dyaddemXregterMarEEZ

logit marnoeez c.polyarchylow##c.regter relcapenergy majpow cwmid americas europe asia middleeast year yearsq
estimates store dyaddemXregterMarNOEEZ

	
esttab dyaddemXzacherXMarEEZ dyaddemXzacherXMarNOEEZ dyaddemXregpacMarEEZ dyaddemXregpacMarNOEEZ dyaddemXregterMarEEZ dyaddemXregterMarNOEEZ ///
	using ttw_laspisamitchell_tableAXIIB.rtf, replace compress b(%9.3f) ///
	se transform(ln*: exp(2*@) exp(2*@)) stats(N ll,fmt("%9.0fc")) ///
	star(* .05 ** .01 *** .001) ///
	mlabel("EEZ" "Non-EEZ" "EEZ" "Non-EEZ" "EEZ" "Non-EEZ") ///
	order(polyarchylow zacher regpac regter relcapenergy majpow cwmid americas europe asia middleeast year yearsq) ///
	label ///
	title("Table A12b: Replicating Territorial Integrity Models with Maritime Non-EEZ Claims")	
	
log close
clear all